package nutella89.basic;
public class J03_AmbiguousIF {

	public static void main(String[] args) {
		// 애매모호한 IF문
		int x = 1;
		int y = 2;
		int z = 3;
		
		if ( x > 2 ) 
			if ( y > 2 )  
				z = x + y;
		 else  
			System.out.println( "x is " + x );
		System.out.println( "z is " + z );
		
		if ( x > 2 ) {
			if ( y > 2 ) 
				z = x + y;
			System.out.println( "z is " + z );
		} else  
			System.out.println( "x is " + x );
		 

	}

}



